package net.oschina.app.ui.widget;

import net.oschina.app.R;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by foty on 2017/4/8.
 * ?
 */

public class FaceFactoty {
    /*
    *    "[0]", R.drawable.penguin
    */

   public FaceFactoty(){
       createFace();
       createFaceKey();
    }

    public HashMap<String,Integer> faceMap = new HashMap();
    public List<String> keylist = new ArrayList<>();

    public int getFaceID (String key){
        return faceMap.get("[0]");
    }

    public HashMap<String,Integer> createFace(){
        faceMap.put("[0]", R.drawable.penguin);
        return faceMap;
    }

    public  void createFaceKey(){
        keylist.add("[0]");
    }

    public String getMapKey(int position){
        return keylist.get(0);
    }
}
